import httpInstance from "@/utils/http";


// 获取 banner
export function getBannerAPI(params = {}) {
    // 默认1 商品2
    const { distributionSite = '1' } = params
    return httpInstance({
        url: '/home/banner',
        params: {
            distributionSite
        }
    })
}

// 获取 banner
export const geNewAPI = () => {
    return httpInstance({
        url: '/home/new'
    })
}

// 获取 hot
export const getHotAPI = () => {
    return httpInstance({
        url: '/home/hot',
    })
}

// 获取goods
export const getGoodsAPI = () => {
    return httpInstance({
        url: '/home/goods'
    })
}